/**
 * Created by clarie on 14-7-23.
 */
var arrow=(function(){
    var arrows=$('.arrow');
    arrows.click(function(){
        console.info(arrows.index($(this)[0]));
        console.info($(this).next());
       if($(this).hasClass('open')){
           $(this).removeClass('open');
           $(this).parent().find('.sub').hide();
       }
        else{
           $(this).addClass('open');
           $(this).parent().find('.sub').show();
       }
    });

})();